package com.tqw.chd.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 商品列表pojo基类
 * @author Alex
 */
@Data
@Accessors(chain = true)
@TableName("item_cat")
public class ItemCat extends BasePojo{

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;      //商品名
    private Integer parentId; //父级菜单
    private Integer level;    //商品分类等级 1 2 3
    private Boolean status;   //分类状态 0停用 1正常

    @TableField(exist = false)
    private List<ItemCat> children;

}
